package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.Theme;
import cn.wolfcode.luowowo.article.domain.Ticket;
import cn.wolfcode.luowowo.article.mapper.TicketMapper;
import cn.wolfcode.luowowo.article.service.ITicketService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@Service
public class TicketServiceImpl implements ITicketService{

    @Autowired
    public TicketMapper ticketMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insert(Ticket record) {
        return 0;
    }

    @Override
    public Ticket selectByPrimaryKey(Long id) {
        return ticketMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Ticket> selectAll() {
        return ticketMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Ticket record) {
        return 0;
    }

    @Override
    public Theme getTmen() {
        return ticketMapper.getTmen();
    }

    @Override
        public List<Ticket> getId(Long ajaxDestId, Long ajaxSubjectId) {
        List<Ticket> id = ticketMapper.getId(ajaxDestId, ajaxSubjectId);
        return ticketMapper.getId(ajaxDestId,ajaxSubjectId);
    }

    @Override
    public List<Ticket> getLists(Long ajaxDestId) {
        return ticketMapper.getLists(ajaxDestId);
    }
}
